﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ServerExplorer.SharePointConnections.SharepointSiteInfo.Entities
{
    [Serializable]
    public class WebPartsAllocation
    {
        const string _attributeName = "WebPart Allocation";

        [XmlAttribute("Name")]
        public string AttributeName
        {
            get { return _attributeName; }
            set { }
        }

        private List<WebPartStruct> _webPartStructs;

        [XmlElement(ElementName = "WebPartStruct")]
        public List<WebPartStruct> WebPartStructs
        {
            get { return _webPartStructs; }
            set { _webPartStructs = value; }
        }

        public WebPartsAllocation()
        {
            WebPartStructs = new List<WebPartStruct>();
        }

    }
}
